//创建一个路由器暴露出去

//引入路由器
import {type RouteRecordRaw,createRouter,createWebHistory} from 'vue-router';
//引入路由模块
import ManagerHome from '@/views/manage/Home.vue';
import manageLogin from '@/views/manage/Login.vue';
import path from 'path';


const routes = [
    {
        name:"manageHome",
        path:"/manage",
        component:ManagerHome,
        meta: { requiresAuth:true},
        children: [
            {
                path: "user",
                component: ()=> import("@/views/manage/user/User.vue")
            },
            {
                path: "menu",
                component: ()=> import("@/views/manage/menu/MenuManage.vue")
            },
            {
                path: "menuGroup",
                component: ()=> import("@/views/manage/menu/MenuGroup.vue")
            },
            {
                path: "doQuestion",
                component: ()=> import("@/views/manage/mk/DoQuestion.vue")
            },
            {
                path: "mkMember",
                component: ()=> import("@/views/manage/mk/MkMember.vue")
            },
            {
                path: "mkEveryDayStatus",
                component: ()=> import("@/views/manage/mk/MkEveryDayStatus.vue")
            },
            {
                path: "mkMonthStatus",
                component: ()=> import("@/views/manage/mk/MkMonthStatus.vue")
            },
            {
                path: "mkEveryDayStatus2",
                component: ()=> import("@/views/manage/mk/MkEveryDayStatusTwo.vue")
            },
            {
                path: "mkEveryDayStatus3",
                component: ()=> import("@/views/manage/mk/MkEveryDayStatusThree.vue")
            },
            {
                path: "mkTimeStatus",
                component: ()=> import("@/views/manage/mk/MkTimeStatus.vue")
            },
            {
                path: "mkTimeStatusView",
                component: ()=> import("@/views/manage/mk/MkTimeStatusView.vue")
            },
            {
                path: "mkMemberTypeBank",
                component: ()=> import("@/views/manage/mk/MkMemberTypeBank.vue")
            }
        ]
    },
    {
        name:"manageLogin",
        path:"/manage/login",
        component:manageLogin
    }
];


//创建路由器
const companyRouter:Array<RouteRecordRaw> = routes;


export default companyRouter;